package demo4.controller;

import demo4.mapper.IUserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class UserController {
    @Autowired
    private IUserMapper userMapper;

    public void start(){
        System.out.println("UserController:开始处理用户请求");
        System.out.println("UserController:开始处理注册");
        System.out.println("UserController:获取用户输入信息....");
        userMapper.insert(null);
        System.out.println("UserController:注册成功");
    }
}
